package com.example.miniappssm.mapper;

import com.example.miniappssm.bean.GrowthNotes;
import com.example.miniappssm.bean.GrowthRecords;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GrowthMapper {

    List<GrowthNotes> selectAllGrowthNotes();

    List<GrowthRecords> selectAllGrowthRecordByCropId(@Param("cropId") Integer cropId);

    void insertGrowthNotes(GrowthNotes growthNotes);

    void insertGrowthRecords(GrowthRecords growthRecords);

    void updateCropImgByCropId(@Param("cropId") Integer cropId, @Param("cropImg") String cropImg);

    GrowthNotes selectGrowthNotesByCropId(@Param("cropId") Integer cropId);

    void updateGrowthNotes(GrowthNotes growthNotes);
}
